package com.hs.hlw.credit.system.business.service;

import com.hs.hlw.credit.system.business.dto.ResponseDto;
import com.hs.hlw.credit.system.business.dto.SubmissionDto;
import com.hs.hlw.credit.system.business.dto.UserDto;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

/**
 * SubmissionService
 * @author zhb
 * @date 2018/11/22
 */
public interface SubmissionService {
    /**
     * 单个报送
     * @param data
     * @param user
     * @return
     */
    ResponseDto submit(SubmissionDto.Submit data, UserDto user);

    /**
     * 保存草稿
     * @param data
     * @param user
     * @return
     */
    ResponseDto saveDraft(SubmissionDto.Submit data, UserDto user);

    /**
     * 批量删除草稿
     * @param data
     * @return
     */
    ResponseDto batchDeleteDraft(SubmissionDto.BatchDeleteDraft data);

    /**
     * 批量提交草稿
     * @param data
     * @return
     */
    ResponseDto batchSubmitDraft(SubmissionDto.BatchSubmitDraft data, UserDto user);

    /**
     * 批量报送
     * @param formId
     * @param fileName
     * @param fileBytes
     * @param user
     * @return
     */
    ResponseDto batchSubmit(Integer formId, Integer batchId, String fileName, byte[] fileBytes, UserDto user);
}